package com.thy.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hospital.common.pojo.TDoctorInfo;
import com.hospital.common.vo.management.module.DoctorInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 医生信息 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-09-12
 */
public interface TDoctorInfoMapper extends BaseMapper<TDoctorInfo> {

    List<DoctorInfoVo> getAllDoctor();

    IPage<DoctorInfoVo> getDoctorByDepartmentAndName(@Param("departmentId") Long departmentId, @Param("name") String name,@Param("page") Page<DoctorInfoVo> page);

    DoctorInfoVo getDoctor(@Param("userId") Long userId);

    Long getInfoIdByUserId(@Param("userId") Long userId);

    void addImgPath(@Param("userId") Long userId,@Param("photoDirPath") String photoDirPath,@Param("photoFile") String photoFile);
}
